const allRoutes = [
  {
    path: "/mine",
    component: () => import(/*webpackChunkName:"mine"*/ "../pages/Home/Mine"),
    name: "mine",
    meta: {
      fullpath: "/mine",
      icon: "iconfont icon-Icon_wode1-copy-copy",
      name: "我的中心",
    },
  },
  {
    path: "/welcome",
    component: () =>
      import(/*webpackChunkName:"welcome"*/ "../pages/Home/Welcome"),
    name: "welcome",
    meta: {
      fullpath: "/welcome",
      icon: "iconfont icon-yemian-copy-copy",
      name: "管理首页",
    },
  },
  {
    path: "/attendance",
    component: () =>
      import(/*webpackChunkName:"attendance"*/ "../pages/Home/Attendance"),
    name: "attendance",
    meta: {
      fullpath: "/attendance",
      icon: "iconfont icon-kaoqin1",
      name: "考勤管理",
    },
  },
  {
    path: "/statistics",
    component: () =>
      import(/*webpackChunkName:"statistics"*/ "../pages/Home/Statistics"),
    name: "statistics",
    meta: {
      fullpath: "/statistics",
      icon: "iconfont icon-shuju",
      name: "数据统计",
    },
  },
  {
    path: "/studentManager",
    component: () =>
      import(
        /*webpackChunkName:"studentManager"*/ "../pages/Home/studentManager"
      ),
    name: "studentManager",
    redirect: "/studentManager/product",
    meta: {
      fullpath: "/studentManager",
      icon: "iconfont icon-icon-",
      name: "学员管理",
    },
    children: [
      {
        path: "dormitory",
        component: () =>
          import(
            /*webpackChunkName:"dormitory" */ "../pages/Home/studentManager/studentDormitory"
          ),
        name: "dormitory",
        meta: {
          //储存一些属性
          fullPath: "/studentManager/dormitory",
          icon: "iconfont icon-sushe",
          name: "学员宿舍",
        },
      },
      {
        path: "product",
        component: () =>
          import(
            /*webpackChunkName:"product" */ "../pages/Home/studentManager/studentProduct"
          ),
        name: "product",
        meta: {
          //储存一些属性
          fullPath: "/studentManager/product",
          icon: "iconfont icon-xiangmuguanli",
          name: "学员项目管理",
        },
      },
      {
        path: "profile",
        component: () =>
          import(
            /*webpackChunkName:"profile" */ "../pages/Home/studentManager/studentProfile"
          ),
        name: "profile",
        meta: {
          //储存一些属性
          fullPath: "/studentManager/profile",
          icon: "iconfont icon-read",
          name: "学员资料",
        },
      },
    ],
  },
  {
    path: "/users",
    component: () => import(/*webpackChunkName:"users"*/ "../pages/Home/Users"),
    name: "users",
    meta: {
      fullpath: "/users",
      icon: "iconfont ",
      name: "用户管理",
    },
  },
];
export default allRoutes;
